package com.example.administrator.acmapp.Fragment;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.administrator.acmapp.Activity.VideoTest;
import com.example.administrator.acmapp.R;
import com.oragee.banners.BannerView;

import java.util.ArrayList;
import java.util.List;


/**
 * Created by Administrator on 2018/2/1/001.
 */

public class ClassroomFragment extends android.support.v4.app.Fragment {

    private View view;

    public ClassroomFragment() {

    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.classroom_fragment_layout, container, false);
        Button button = view.findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(getContext(), VideoTest.class);
                startActivity(intent);
            }
        });
        return view;
    }
}
